package com.frame.pageform.tag;

import javax.servlet.jsp.tagext.*;

public class IterateTei extends TagExtraInfo{

	public IterateTei(){

	}
	public VariableInfo[] getVariableInfo(TagData data)
	{
		String id = (String) data.getAttribute("id");
		String type = (String) data.getAttribute("type");
		String indexId = (String) data.getAttribute("indexId");
		if (type == null)
			type = "java.lang.Object";
		if (indexId != null)
		{
			return new VariableInfo[]
					{
							new VariableInfo(id, type, true, VariableInfo.NESTED),
							new VariableInfo(indexId, "java.lang.Integer", true,
									VariableInfo.NESTED)
					};
		}
		else
		{
			return new VariableInfo[]
					{
							new VariableInfo(id, type, true, VariableInfo.NESTED),
					};
		}
	}
}
